package lhc.learn.nio;

import lhc.learn.bio.TimeClient;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.math.NumberUtils;

/**
 * Created by Lihc on 2016/3/24.
 */
public class TimeServer {
    public static void main(String[] args) {
        int port = ArrayUtils.isNotEmpty(args) ? NumberUtils.toInt(args[0], 8080) : 8080;
        MultiplexerTimeServer server = new MultiplexerTimeServer(port);
        new Thread(server).start();
    }
}
